﻿using System;
using System.Collections.Generic;

namespace Web.Core.Models
{
    public sealed class MiniCart
    {
        /// <summary>
        /// 商品总数量
        /// </summary>
        public int Quantity { get; private set; }
        /// <summary>
        /// 总计
        /// </summary>
        public decimal Total { get; private set; }
        /// <summary>
        /// 商品项
        /// </summary>
        public IList<MiniCartItem> Items { get; private set; }

        public MiniCart(int quantity, decimal total, IList<MiniCartItem> items)
        {
            Quantity = quantity;
            Total = total;
            Items = items;
        }
    }

}